<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!--[if lt IE 7]>      <html class="ie6"> <![endif]-->
<!--[if IE 7]>         <html class="ie7"> <![endif]-->
<!--[if IE 8]>         <html class="ie8"> <![endif]-->
<!--[if gt IE 8]><!--> <html xmlns="http://www.w3.org/1999/xhtml">           <!--<![endif]-->
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
        <title>
            <if condition=" isset($SEO['title']) && !empty($SEO['title']) ">{$SEO['title']}</if>
            {:C("sitename")}
        </title>
        <meta name="keywords" content="{$SEO['keyword']}" />
        <meta name="description" content="{$SEO['description']}" />
        <link rel="canonical" href="{$Config.siteurl}" />
        <!--[if lt IE 9]>
        <script type="text/javascript" src="__PUBLIC_DC__/lib/js/html5.js"></script>
        <![endif]-->
        <css href="__PUBLIC_HOME__/css/all.css?v=20130608" />
        <css href="__PUBLIC_HOME__/css/user_new.css?v=20130608" />
        <script src="__COMMON__/js/jquery.js"></script>
        <script src="__COMMON__/js/ajaxForm.js"></script>
        <script src="__COMMON__/js/artDialog/artDialog.js?skin=idialog"></script>
        <script src="__COMMON__/js/artDialog/plugins/iframeTools.js"></script>
        <script src="__COMMON__/js/store.common.js"></script>
        <script src="__COMMON__/js/fun.js"></script>
        <import type="js" file="Js.My97DatePicker.WdatePicker" />
        <!--[if lte IE 6]>
        <js href="__PUBLIC__/Js/png.js" />
        <![endif]-->
        <script type="text/javascript">                
            function AddFavorite(sURL, sTitle) {
                try {
                    window.external.addFavorite(sURL, sTitle);
                } catch (e) {
                    try {
                        window.sidebar.addPanel(sTitle, sURL, "");
                    } catch (e) {
                        alert("加入收藏失败，请使用Ctrl+D进行添加");
                    }
                }
            }
            function SetHome(url) {
                if (document.all) {
                    document.body.style.behavior = 'url(#default#homepage)';
                    document.body.setHomePage(url);
                } else {
                    alert("您好,您的浏览器不支持自动设置页面为首页功能,请您手动在浏览器里设置该页面为首页!");
                }
            }
        </script>
    </head>
    <body>
        <div class="homebox">
            <div class="topnav">
                <div class="nl">
                    <if condition="session('uid')">
                        <a href="{:U('User/Index/index')}" class="au">{:session('username')}</a>
                        <a href="{:U('User/Message/getbox')}" class="ar" id="newMsg">站内信(0)</a>
                        <a href="{:U('User/Public/loginOut')}" >退出</a>
                        <script type="text/javascript">window.setInterval(countMsg, 5000); </script>
                    <else/>
                    <a href="{:U('User/Public/reg')}" class="au">注册</a>
                    <a href="{:U('User/Public/login')}" class="ar">会员登录</a>
                    </if>
                </div>
                <div class="nr"><a href="javascript:void(0)" onclick="SetHome(window.location);return false;">设为首页</a>  ┊  <a href="javascript:void(0)" onclick="AddFavorite(window.location,document.title);return false;">加入收藏</a> <volist name="article_header" id="ah"> ┊ <a href="{:U('Article/view', array('id'=>$ah['id']))}"> {$ah.title}</a> </volist></div>
            </div>
            <div class="clear"></div> 
            <div class="home">

                <div class="header">
                    <div class="logo" onclick="window.location.href='{$Config.siteurl}'"><img src="__PUBLIC_HOME__/images/logo.jpg" /></div>
                    <div class="ad">{:getBlock('logo_right_photo_ad')}</div>
                </div>

                <div class="clear"></div>
                <div  class="menu">
                    <ul>                
                        <li><a href="{$Config.siteurl}" class="w1 <if condition="MODULE_NAME eq 'Index'">current1</if>" title="网站首页"></a></li>                                            
                        <li><a href="{:U('Home/Catad/Index')}" class="w2 <if condition="MODULE_NAME eq 'Catad'">current2</if>"  title="分类广告"></a></li>
                        <li><a href="{:U('Home/Dazhe/Index')}" class="w3 <if condition="MODULE_NAME eq 'Dazhe'">current3</if>" title="打折优惠"></a></li>
                        <li><a href="{:U('Home/Service/Index')}" class="w4 <if condition="MODULE_NAME eq 'Service'">current4</if>" title="生活服务"></a></li>
                        <li><a href="{:U('Home/Search/Index')}" class="w5 <if condition="MODULE_NAME eq 'Search'">current5</if>" title="综合搜索"></a></li>
                    </ul>                    
                </div>   
            </div>
        </div>
        <div class="clear"></div> 
        <div class="all_box">
            <!----head_end---->
